﻿using GestionSaludOcupacional.Repository.Repositories;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Data.Objects.DataClasses;
using System.Collections.Generic;
using System.Linq;

namespace GestionSaludOcupacional.Portal.Tests
{
    
    
    /// <summary>
    ///This is a test class for MemoryRepositoryTest and is intended
    ///to contain all MemoryRepositoryTest Unit Tests
    ///</summary>
    [TestClass()]
    public class MemoryRepositoryTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for MemoryRepository`1 Constructor
        ///</summary>
        public void MemoryRepositoryConstructorTestHelper<E>()
            where E : EntityObject
        {
            E[] entities = null; // TODO: Initialize to an appropriate value
            MemoryRepository<E> target = new MemoryRepository<E>(entities);
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        [TestMethod()]
        public void MemoryRepositoryConstructorTest()
        {
            Assert.Inconclusive("No appropriate type parameter is found to satisfies the type constraint(s) of E. " +
                    "Please call MemoryRepositoryConstructorTestHelper<E>() with appropriate type par" +
                    "ameters.");
        }

        /// <summary>
        ///A test for MemoryRepository`1 Constructor
        ///</summary>
        public void MemoryRepositoryConstructorTest1Helper<E>()
            where E : EntityObject
        {
            IEnumerable<E> entities = null; // TODO: Initialize to an appropriate value
            MemoryRepository<E> target = new MemoryRepository<E>(entities);
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        [TestMethod()]
        public void MemoryRepositoryConstructorTest1()
        {
            Assert.Inconclusive("No appropriate type parameter is found to satisfies the type constraint(s) of E. " +
                    "Please call MemoryRepositoryConstructorTest1Helper<E>() with appropriate type pa" +
                    "rameters.");
        }

        /// <summary>
        ///A test for MemoryRepository`1 Constructor
        ///</summary>
        public void MemoryRepositoryConstructorTest2Helper<E>()
            where E : EntityObject
        {
            MemoryRepository<E> target = new MemoryRepository<E>();
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        [TestMethod()]
        public void MemoryRepositoryConstructorTest2()
        {
            Assert.Inconclusive("No appropriate type parameter is found to satisfies the type constraint(s) of E. " +
                    "Please call MemoryRepositoryConstructorTest2Helper<E>() with appropriate type pa" +
                    "rameters.");
        }

        /// <summary>
        ///A test for Add
        ///</summary>
        public void AddTestHelper<E>()
            where E : EntityObject
        {
            MemoryRepository<E> target = new MemoryRepository<E>(); // TODO: Initialize to an appropriate value
            E entity = default(E); // TODO: Initialize to an appropriate value
            target.Add(entity);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        [TestMethod()]
        public void AddTest()
        {
            Assert.Inconclusive("No appropriate type parameter is found to satisfies the type constraint(s) of E. " +
                    "Please call AddTestHelper<E>() with appropriate type parameters.");
        }

        /// <summary>
        ///A test for All
        ///</summary>
        public void AllTestHelper<E>()
            where E : EntityObject
        {
            MemoryRepository<E> target = new MemoryRepository<E>(); // TODO: Initialize to an appropriate value
            string includes = string.Empty; // TODO: Initialize to an appropriate value
            IQueryable<E> expected = null; // TODO: Initialize to an appropriate value
            IQueryable<E> actual;
            actual = target.All(includes);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        [TestMethod()]
        public void AllTest()
        {
            Assert.Inconclusive("No appropriate type parameter is found to satisfies the type constraint(s) of E. " +
                    "Please call AllTestHelper<E>() with appropriate type parameters.");
        }

        /// <summary>
        ///A test for All
        ///</summary>
        public void AllTest1Helper<E>()
            where E : EntityObject
        {
            MemoryRepository<E> target = new MemoryRepository<E>(); // TODO: Initialize to an appropriate value
            IQueryable<E> expected = null; // TODO: Initialize to an appropriate value
            IQueryable<E> actual;
            actual = target.All();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        [TestMethod()]
        public void AllTest1()
        {
            Assert.Inconclusive("No appropriate type parameter is found to satisfies the type constraint(s) of E. " +
                    "Please call AllTest1Helper<E>() with appropriate type parameters.");
        }

        /// <summary>
        ///A test for Remove
        ///</summary>
        public void RemoveTestHelper<E>()
            where E : EntityObject
        {
            MemoryRepository<E> target = new MemoryRepository<E>(); // TODO: Initialize to an appropriate value
            E entity = default(E); // TODO: Initialize to an appropriate value
            target.Remove(entity);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        [TestMethod()]
        public void RemoveTest()
        {
            Assert.Inconclusive("No appropriate type parameter is found to satisfies the type constraint(s) of E. " +
                    "Please call RemoveTestHelper<E>() with appropriate type parameters.");
        }

        /// <summary>
        ///A test for Save
        ///</summary>
        public void SaveTestHelper<E>()
            where E : EntityObject
        {
            MemoryRepository<E> target = new MemoryRepository<E>(); // TODO: Initialize to an appropriate value
            target.Save();
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        [TestMethod()]
        public void SaveTest()
        {
            Assert.Inconclusive("No appropriate type parameter is found to satisfies the type constraint(s) of E. " +
                    "Please call SaveTestHelper<E>() with appropriate type parameters.");
        }

        /// <summary>
        ///A test for Update
        ///</summary>
        public void UpdateTestHelper<E>()
            where E : EntityObject
        {
            MemoryRepository<E> target = new MemoryRepository<E>(); // TODO: Initialize to an appropriate value
            E entity = default(E); // TODO: Initialize to an appropriate value
            target.Update(entity);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        [TestMethod()]
        public void UpdateTest()
        {
            Assert.Inconclusive("No appropriate type parameter is found to satisfies the type constraint(s) of E. " +
                    "Please call UpdateTestHelper<E>() with appropriate type parameters.");
        }
    }
}
